﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using FieldTemplate;

namespace WpfDevelopHelper
{
    /// <summary>
    /// NameSet.xaml 的交互逻辑
    /// </summary>
    public partial class NameSet : UserControl
    {
        public NameSet()
        {
            InitializeComponent();
        }
    }

    [Serializable]
    public class NameFieldSetVm : FieldSetVmBase
    {
        public NameFieldSetVm()
        {
            FieldName = "姓名";
            FieldType = "name";

            SetPanel = new NameSet();
            SetPanel.DataContext = this;

        }

        public override Fieldinfo Serialize()
        {
            var tmp = base.Serialize();
            //tmp.propertyinfos.Add(new Propertyinfo() { PorpertyName = "StartNum", PropertyValue = StartNum.ToString() });
            //tmp.propertyinfos.Add(new Propertyinfo() { PorpertyName = "Step", PropertyValue = Step.ToString() });

            return tmp;
        }
        public override string GetFieldValue()
        {
             return Global.GetIndstance().GenerateChineseName();
        }
    }

}
